Optimal. Leaf size=68 \[ \frac {a \tan (c+d x)}{d}+\frac {(2 a+b) \tan ^3(c+d x)}{3 d}+\frac {(a+2 b) \tan ^5(c+d x)}{5 d}+\frac {b \tan ^7(c+d x)}{7 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 68, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {3756, 380}
\begin {gather*} \frac {(a+2 b) \tan ^5(c+d x)}{5 d}+\frac {(2 a+b) \tan ^3(c+d x)}{3 d}+\frac {a \tan (c+d x)}{d}+\frac {b \tan ^7(c+d x)}{7 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 380
Rule 3756
Rubi steps
\begin {align*} \int \sec ^6(c+d x) \left (a+b \tan ^2(c+d x)\right ) \, dx &=\frac {\text {Subst}\left (\int \left (1+x^2\right )^2 \left (a+b x^2\right ) \, dx,x,\tan (c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \left (a+(2 a+b) x^2+(a+2 b) x^4+b x^6\right ) \, dx,x,\tan (c+d x)\right )}{d}\\ &=\frac {a \tan (c+d x)}{d}+\frac {(2 a+b) \tan ^3(c+d x)}{3 d}+\frac {(a+2 b) \tan ^5(c+d x)}{5 d}+\frac {b \tan ^7(c+d x)}{7 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.18, size = 75, normalized size = 1.10 \begin {gather*} \frac {\tan (c+d x) \left (105 a-8 b-4 b \sec ^2(c+d x)-3 b \sec ^4(c+d x)+15 b \sec ^6(c+d x)+70 a \tan ^2(c+d x)+21 a \tan ^4(c+d x)\right )}{105 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.21, size = 94, normalized size = 1.38
method | result | size |
derivativedivides | \(\frac {b \left (\frac {\sin ^{3}\left (d x +c \right )}{7 \cos \left (d x +c \right )^{7}}+\frac {4 \left (\sin ^{3}\left (d x +c \right )\right )}{35 \cos \left (d x +c \right )^{5}}+\frac {8 \left (\sin ^{3}\left (d x +c \right )\right )}{105 \cos \left (d x +c \right )^{3}}\right )-a \left (-\frac {8}{15}-\frac {\left (\sec ^{4}\left (d x +c \right )\right )}{5}-\frac {4 \left (\sec ^{2}\left (d x +c \right )\right )}{15}\right ) \tan \left (d x +c \right )}{d}\) | \(94\) |
default | \(\frac {b \left (\frac {\sin ^{3}\left (d x +c \right )}{7 \cos \left (d x +c \right )^{7}}+\frac {4 \left (\sin ^{3}\left (d x +c \right )\right )}{35 \cos \left (d x +c \right )^{5}}+\frac {8 \left (\sin ^{3}\left (d x +c \right )\right )}{105 \cos \left (d x +c \right )^{3}}\right )-a \left (-\frac {8}{15}-\frac {\left (\sec ^{4}\left (d x +c \right )\right )}{5}-\frac {4 \left (\sec ^{2}\left (d x +c \right )\right )}{15}\right ) \tan \left (d x +c \right )}{d}\) | \(94\) |
risch | \(\frac {16 i \left (70 a \,{\mathrm e}^{8 i \left (d x +c \right )}-70 b \,{\mathrm e}^{8 i \left (d x +c \right )}+175 a \,{\mathrm e}^{6 i \left (d x +c \right )}+35 b \,{\mathrm e}^{6 i \left (d x +c \right )}+147 a \,{\mathrm e}^{4 i \left (d x +c \right )}-21 b \,{\mathrm e}^{4 i \left (d x +c \right )}+49 a \,{\mathrm e}^{2 i \left (d x +c \right )}-7 b \,{\mathrm e}^{2 i \left (d x +c \right )}+7 a -b \right )}{105 d \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{7}}\) | \(123\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 56, normalized size = 0.82 \begin {gather*} \frac {15 \, b \tan \left (d x + c\right )^{7} + 21 \, {\left (a + 2 \, b\right )} \tan \left (d x + c\right )^{5} + 35 \, {\left (2 \, a + b\right )} \tan \left (d x + c\right )^{3} + 105 \, a \tan \left (d x + c\right )}{105 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.46, size = 74, normalized size = 1.09 \begin {gather*} \frac {{\left (8 \, {\left (7 \, a - b\right )} \cos \left (d x + c\right )^{6} + 4 \, {\left (7 \, a - b\right )} \cos \left (d x + c\right )^{4} + 3 \, {\left (7 \, a - b\right )} \cos \left (d x + c\right )^{2} + 15 \, b\right )} \sin \left (d x + c\right )}{105 \, d \cos \left (d x + c\right )^{7}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \tan ^{2}{\left (c + d x \right )}\right ) \sec ^{6}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.63, size = 70, normalized size = 1.03 \begin {gather*} \frac {15 \, b \tan \left (d x + c\right )^{7} + 21 \, a \tan \left (d x + c\right )^{5} + 42 \, b \tan \left (d x + c\right )^{5} + 70 \, a \tan \left (d x + c\right )^{3} + 35 \, b \tan \left (d x + c\right )^{3} + 105 \, a \tan \left (d x + c\right )}{105 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 12.01, size = 56, normalized size = 0.82 \begin {gather*} \frac {\frac {b\,{\mathrm {tan}\left (c+d\,x\right )}^7}{7}+\left (\frac {a}{5}+\frac {2\,b}{5}\right )\,{\mathrm {tan}\left (c+d\,x\right )}^5+\left (\frac {2\,a}{3}+\frac {b}{3}\right )\,{\mathrm {tan}\left (c+d\,x\right )}^3+a\,\mathrm {tan}\left (c+d\,x\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________